'use strict';
const db = uniCloud.database()
exports.main = async (event, context) => {
	//event为客户端上传的参数
	const coll = db.collection('support')
	const res = await coll.add(event)
	
	//返回数据给客户端
	let res1 = Object.assign(res,{msg:'提交成功'})
	
	return res1
};
